﻿<script src="../../../processing.js"></script>
<canvas datasrc="imagemode.pjs" width="200" height="200"></canvas>
<pre>
/* @pjs preload="ref_string.jpg"; */
size(200,200);
PImage b;
b = loadImage("ref_string.jpg");
imageMode(CORNERS);
image(b, 10, 10, 60, 60);
imageMode(CORNER);
image(b, 35, 35, 50, 50);
</pre>
<a href="http://processing.org/reference/imageMode_.html">Original Processing example</a>